﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="uc-khach-hang.ascx.cs" Inherits="VanTaiTMS.SubPage.uc_khach_hang" %>
<!------Popup------>
<script type="text/javascript">
    $(document).ready(function () {
        //setup new person dialog
        $('#ucthongbaokhachang').dialog({
            autoOpen: false,
            draggable: true,
            height: "auto",
            width: "372px",
            position: ['center', 50],
            resizable: false,

            create: function (event) { $(event.target).parent().css('position', 'fixed'); },
            open: function (type, data) {
                $(this).parent().appendTo("form");
            }
        });
    });          
</script>
<!-------End------->

<!-------------Edit-Dữ-Liệu-------------->
<asp:UpdatePanel ID="upNewUpdatePanel" UpdateMode="Conditional" ChildrenAsTriggers="true" runat="server">
    <ContentTemplate>
        <div class="toolbar-ui-all-big">
                <asp:ImageButton CssClass="button-all" ID="imgSave" ImageAlign="Middle" 
                ImageUrl="~/Icon/save.png" runat="server" 
                onclick="imgSave_Click" />

                <asp:ImageButton CssClass="button-all" ID="imgrefesh" ImageAlign="Middle" 
                ImageUrl="~/Icon/refesh-ui.png" ToolTip="Làm tươi" runat="server" 
                onclick="imgrefesh_Click" />
        </div>
        <div class="clr"></div>
        <div class="ui-main">
            <div style="display: none"><asp:Label ID="lbID" runat="server"></asp:Label></div>
            <div class="ui-box-text-box">
                <label class="label">Mã khách hàng <span style="color:Red">(*)</span></label>
                <asp:TextBox ID="txtMaKhachHang" CssClass="textbox" runat="server"></asp:TextBox>
            </div>

            <div class="ui-box-text-box">
                <label class="label">Tên khách hàng <span style="color:Red">(*)</span></label>
                <asp:TextBox ID="txtTenKhachHang" CssClass="textbox" runat="server"></asp:TextBox>
            </div>

            <div class="ui-box-text-box">
                <label class="label">Ngày sinh <span style="color:Red">(*)</span></label>
                <asp:TextBox ID="txtNgaySinh" CssClass="textboxngaynhap" runat="server"></asp:TextBox>
            </div>

            <div class="ui-box-text-box">
                <label class="label">Mã số thuế <span style="color:Red">(*)</span></label>
                <asp:TextBox ID="txtMaSoThue" CssClass="textbox" runat="server"></asp:TextBox>
            </div>

            <div class="clr"></div>

            <div class="ui-box-text-box">
                <label class="label">Mã đại lý <span style="color:Red">(*)</span></label>
                <asp:TextBox ID="txtMaDaiLy" CssClass="textbox" runat="server"></asp:TextBox>
            </div>

            <div class="ui-box-text-box">
                <label class="label">Số hợp đồng <span style="color:Red">(*)</span></label>
                <asp:TextBox ID="txtSoHopDong" CssClass="textbox" runat="server"></asp:TextBox>
            </div>

            <div class="ui-box-text-box">
                <label class="label">Tên GĐ/TP <span style="color:Red">(*)</span></label>
                <asp:TextBox ID="txtTenGiamDocTruongPhong" CssClass="textbox" runat="server"></asp:TextBox>
            </div>

            <div class="ui-box-text-box">
                <label class="label">Ngày ký <span style="color:Red">(*)</span></label>
                <asp:TextBox ID="txtNGayKy" CssClass="textboxngaynhap" runat="server"></asp:TextBox>
            </div>

            <div class="clr"></div>

            <div class="ui-box-text-box">
                <label class="label">Ngày thanh lý <span style="color:Red">(*)</span></label>
                <asp:TextBox ID="txtNgayThanhLy" CssClass="textboxngaynhap" runat="server"></asp:TextBox>
            </div>

            <div class="ui-box-text-box">
                <label class="label">
                    Tỉnh thành <span style="color:Red">(*)</span>
                    <span style="text-align:right;color:blue">
                    <asp:LinkButton ID="linkThemNhanhTinhThanh" runat="server" ToolTip="Thêm nhanh vào bảng nếu chưa có" OnClick="linkThemNhanhTinhThanh_Click">[...]</asp:LinkButton>
                    </span>
                </label>
                <asp:DropDownList ID="drTinhThanh" CssClass="select-drop" runat="server" AutoPostBack="true" AppendDataBoundItems="True" OnSelectedIndexChanged="drTinhThanh_SelectedIndexChanged">
                    <asp:ListItem Value="-1">--Vui lòng chọn tỉnh thành--</asp:ListItem>
                </asp:DropDownList>
            </div>

            <div class="ui-box-text-box">
                <label class="label">
                    Quận/huyện <span style="color:Red">(*)</span>
                    <span style="text-align:right;color:blue">
                    <asp:LinkButton ID="linkThemNhanhQuanHuyen" runat="server" ToolTip="Thêm nhanh vào bảng nếu chưa có" OnClick="linkThemNhanhQuanHuyen_Click">[...]</asp:LinkButton>
                    </span>
                </label>
                <asp:DropDownList ID="drQuanHuyen" CssClass="select-drop" runat="server" AutoPostBack="true" AppendDataBoundItems="True">
                    <asp:ListItem Value="-1">--Vui lòng chọn quận huyện--</asp:ListItem>
                </asp:DropDownList>
            </div>

            <div class="ui-box-text-box">
                <label class="label">
                    Chọn bộ phận <span style="color:Red">(*)</span>
                    <span style="text-align:right;color:blue">
                    <asp:LinkButton ID="linkThemNhanhBoPhan" runat="server" ToolTip="Thêm nhanh vào bảng nếu chưa có" OnClick="linkThemNhanhBoPhan_Click">[...]</asp:LinkButton>
                    </span>
                </label>
                <asp:DropDownList ID="drBoPhan" CssClass="select-drop" runat="server" AutoPostBack="true" AppendDataBoundItems="True">
                    <asp:ListItem Value="-1">--Vui lòng chọn bộ phận--</asp:ListItem>
                </asp:DropDownList>
            </div>

            <div class="clr"></div>
            <div class="ui-box-text-box">
                <label class="label">
                    Loại đại lý/DN <span style="color:Red">(*)</span>
                    <span style="text-align:right;color:blue">
                    <asp:LinkButton ID="linkThemNhanhLoaiDaiLy" runat="server" ToolTip="Thêm nhanh vào bảng nếu chưa có" OnClick="linkThemNhanhLoaiDaiLy_Click">[...]</asp:LinkButton>
                    </span>
                </label>
                <asp:DropDownList ID="drLoaiDaiLy" CssClass="select-drop" runat="server" AutoPostBack="true" AppendDataBoundItems="True">
                    <asp:ListItem Value="-1">--Vui lòng chọn loại đại lý--</asp:ListItem>
                </asp:DropDownList>
            </div>

            <div class="ui-box-text-box">
                <label class="label">
                    Lĩnh vực <span style="color:Red">(*)</span>
                    <span style="text-align:right;color:blue">
                    <asp:LinkButton ID="linkThemNhanhLinhVuc" runat="server" ToolTip="Thêm nhanh vào bảng nếu chưa có" OnClick="linkThemNhanhLinhVuc_Click">[...]</asp:LinkButton>
                    </span>
                </label>
                <asp:DropDownList ID="drLinhVuc" CssClass="select-drop" runat="server" AutoPostBack="true" AppendDataBoundItems="True">
                    <asp:ListItem Value="-1">--Vui lòng chọn lĩnh vực--</asp:ListItem>
                </asp:DropDownList>
            </div>

            <div class="ui-box-text-box">
                <label class="label">
                    Chọn số điện thoại<span style="color:Red">(*)</span>
                </label>
                <asp:DropDownList ID="drChonSoDienThoai" CssClass="select-drop" runat="server" AutoPostBack="true" AppendDataBoundItems="True" OnSelectedIndexChanged="drChonSoDienThoai_SelectedIndexChanged">
                    <asp:ListItem Value="-1">--Chọn số điện thoại--</asp:ListItem>
                    <asp:ListItem Value="1">Số điện thoại 10 số</asp:ListItem>
                    <asp:ListItem Value="2">Số điện thoại 11 số</asp:ListItem>
                </asp:DropDownList>
            </div>
                
            <asp:Panel ID="PanelChonSoDienThoai" runat="server">
                <div class="ui-box-text-box">
                    <label class="label">
                        Số điện thoại <span style="color:Red">(*)</span></label>
                    <asp:TextBox ID="txtSoDienThoai10" CssClass="textboxsodienthoai" runat="server"></asp:TextBox>
                    <asp:TextBox ID="txtSoDienThoai11" CssClass="textboxsodienthoai11" runat="server"></asp:TextBox>
                </div>
            </asp:Panel>

            <div class="clr"></div>

            <div class="ui-box-text-box">
                <label class="label">Số Fax</label>
                <asp:TextBox ID="txtSoFax" CssClass="textboxsofax" runat="server"></asp:TextBox>
            </div>

            <div class="ui-box-text-box">
                <label class="label">Email <span style="color:Red"></span></label>
                <asp:TextBox ID="txtEmail" CssClass="textbox" runat="server"></asp:TextBox>
            </div>

            <div class="ui-box-text-box">
                <label class="label">Số tài khoản <span style="color:Red"></span></label>
                <asp:TextBox ID="txtSoTaiKhoan" CssClass="textbox" runat="server"></asp:TextBox>
            </div>

            <div class="ui-box-text-box">
                <label class="label">Ngân hàng <span style="color:Red"></span></label>
                <asp:TextBox ID="txtNganHang" CssClass="textbox" runat="server"></asp:TextBox>
            </div>

            <div class="clr"></div>

            <div class="ui-box-text-box-note-child">
                <label class="label">Địa chỉ</label>
                <asp:TextBox ID="txtDiaChi" TextMode="MultiLine" CssClass="textbox-muiti-note_Child" runat="server"></asp:TextBox>
            </div>

            <div class="ui-box-text-box-note-child">
                <label class="label">Ghi chú</label>
                <asp:TextBox ID="txtGhiChu" TextMode="MultiLine" CssClass="textbox-muiti-note_Child" runat="server"></asp:TextBox>
            </div>
        <div class="clr"></div>
        </div>
        <div class="clr"></div>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server"  AssociatedUpdatePanelID="upNewUpdatePanel">
            <ProgressTemplate>
                <img alt='loadding' class="loading" src="../images/loading-fb.gif" /><br />
                <div class="loading-label-right">
                    Đang xử lý dữ liệu...
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="imgSave" EventName="Click" />
    </Triggers>
</asp:UpdatePanel>
<!--------------Kêt-thúc----------------->

<!-------------Thông-Bao----------------->
<div id="ucthongbaokhachang" title="Thông Báo">
    <asp:UpdatePanel ID="updatePanelThongBao" UpdateMode="Conditional" ChildrenAsTriggers="true" runat="server">
        <ContentTemplate>
            <p>
                <span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span>
                <asp:Label ID="lbThongBaoLoi" CssClass="error-msg" runat="server" Text=""></asp:Label>
            </p>
            <hr />
            <div class="toolbar-ui-footer">
                <asp:Button ID="cmdCloseThongBao" CssClass="btn btn-info" Height="29px" runat="server" 
                    Text="Đóng lại" onclick="cmdCloseThongBao_Click" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</div>
<!--------------Kêt-thúc----------------->